package cn.wolfcode.trip.core.service;

import cn.wolfcode.trip.core.domain.StrategyCatalog;
import cn.wolfcode.trip.core.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCatalogService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    /**
     * 新增和编辑
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 根据id查询攻略
     * @param id
     * @return
     */
    List<StrategyCatalog> listByStrategyId(Long id);
}
